from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp.util import run_wsgi_app
from models import Person


class MainPage(webapp.RequestHandler):
    
    
    def get(self):
        p = Person()
        p.age = 5
        print p.age
        p.put()
        people = db.GqlQuery("SELECT * FROM Person")
        for peep in people:
            print peep.age



application = webapp.WSGIApplication([('/', MainPage)], debug=True)


def main():
    run_wsgi_app(application)


if __name__ == "__main__":
    main()
